﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace KFormBase
{
    public enum MainControls : int
    {
        ButtonNext = 0,
        buttonBack = 1,
        ButtonCancell = 2,
    }

    public enum CountdownAction : int
    {
        None = -1,
        Restart = 0,
        Start = 1,
        Suspend = 2,
        Stop = 3,   
    }

    [DataContract]
    public class CountdownArgs
    {
        /// <summary>
        /// 倒计时操作类型
        /// </summary>
        [DataMember]
        public CountdownAction Action { get; set; }

        /// <summary>
        /// 倒计时总时间
        /// </summary>
        [DataMember]
        public int CountSeconds { get; set; }

        /// <summary>
        /// 使用倒计时的对象 (消息发送者的页面模块名称）
        /// </summary>
        [DataMember]
        public string SenderName { get; set; }

        /// <summary>
        /// 会话ID，用于判断是否是同一个会话的验证码
        /// </summary>
        [DataMember]
        public string SessionID { get; set; }     
    }

    [DataContract]
    public class CountdownCompletedArgs
    {
        /// <summary>
        /// 消息发送者的句柄
        /// </summary>
        [DataMember]
        public string ReceiverName { get; set; }

        /// <summary>
        /// 会话ID，用于判断是否是同一个会话的验证码
        /// </summary>
        [DataMember]
        public string SessionID { get; set; }
    }
}
